#!/bin/bash

echo "欢迎你的使用Reptile！该脚本进程如下↓使用该脚本安装所有的依赖后，下次可使用直接命令 python xx.py 或 python reptile/xx.py"
echo "下载git→下载python→下载python2→下载python3→安装Beautifulsoup4库→安装requests库→安装datetime库→安装wget库→安装npm→完成安装程序"
echo "安装过程中请保持网络流畅"
read -r -p "按回车键继续" input
echo "开始安装依赖"
pkg update
pkg install git
pkg install python
pkg install python2
pkg install python3
pip install Beautifulsoup4
pip install requests
pip install datetime
pip install wget
pip install npm
echo ""
echo "开始安装reptile"
git clone https://gitee.com/sansjtw/reptile
echo ""
read -r -p "安装完成！按回车键进入reptile" input
cd
cd reptile
echo ""
echo ""
echo "即将拉起reptile"
sleep 2
python xx.py